package com.jinlingxiu.app.di

import com.jinlingxiu.app.mvp.contract.WelcomeContract
import com.jinlingxiu.app.mvp.model.WelcomeModel
import com.jinlingxiu.app.mvp.presenter.WelcomePresenter
import com.jinlingxiu.app.mvp.ui.activity.WelcomeActivity
import org.koin.dsl.module

val WelcomeModule = module {
    scope<WelcomeActivity> {
        scoped<WelcomeContract.Model> { WelcomeModel(get()) }
        scoped {
            WelcomePresenter(get(), this.getSource())
        }
    }
}
